﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CompareCheckStructure.cs" company="SmartPlan">
//   SmartPlan 2011
// </copyright>
// <summary>
//   The compare check structure.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace DbDiff.Common.Comparer
{
    using DataAccess;
    using Helper;
    using Model;

    /// <summary>
    /// The compare check structure.
    /// </summary>
    public class CompareCheckStructure : CompareDataStructure
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CompareCheckStructure"/> class.
        /// </summary>
        /// <param name="databaseCompare">
        /// The db compare.
        /// </param>
        /// <param name="objectType">
        /// The object type.
        /// </param>
        public CompareCheckStructure(DatabaseCompare databaseCompare, DatabaseObjectTypes objectType) : base(databaseCompare, objectType)
        {
            this.dv1Name = databaseCompare.DatabaseInfoBaseLeft.DatabaseDataSets.GetDataView(DatabaseDataSets.DtView.CheckByTableName);
            this.dv1Key = databaseCompare.DatabaseInfoBaseLeft.DatabaseDataSets.GetDataView(DatabaseDataSets.DtView.CheckByKey);
            this.dv2Name = databaseCompare.DatabaseInfoBaseRight.DatabaseDataSets.GetDataView(DatabaseDataSets.DtView.CheckByTableName);
            this.dv2Key = databaseCompare.DatabaseInfoBaseRight.DatabaseDataSets.GetDataView(DatabaseDataSets.DtView.CheckByKey);

            this.rowColumnName = DataRowCompareIndex.Check;
        }

        /// <summary>
        /// The compare child rows.
        /// </summary>
        public override void CompareChildRows()
        {
        }
    }
}